package com.xiu.travel.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

/**
 * @author lijie
 * @date 2023/7/20 16:43
 * @description OmsRefundApplicationEnum
 */
@AllArgsConstructor
public enum OmsRefundApplicationEnum implements IEnum<Integer>
{
    /**
     * 商品质量问题
     */
    COMMODITY_QUALITY_ISSUE(0,"商品质量问题"),
    /**
     * 实物与描述不符
     */
    DESCRIPTION_MISMATCH(1,"实物与描述不符"),
    /**
     * 商品磕碰损坏
     */
    DAMAGED_GOODS(2,"商品磕碰损坏"),
    /**
     * 未收到商品
     */
    ITEM_NOT_RECEIVED(3,"未收到商品"),
    /**
     * 包装问题
     */
    PACKAGING_ISSUE(4,"包装问题");
    @EnumValue
    private final Integer code;
    @JsonValue
    private final String status;

    @Override
    public Integer getValue()
    {
        return code;
    }
    public String getStatus(){return status;}
}
